using UnityEngine;

[CreateAssetMenu(fileName = "Thunder strike effect", menuName = "Data/Item effect/Thunder strike")]
public class ThunderStrikeEffect : ItemEffect
{
    [SerializeField] private GameObject prefab;

    public override void ExecuteEffect(Transform transform, Player player)
    {
        GameObject obj = Instantiate(prefab, transform.position, Quaternion.identity);
        Destroy(obj, 1f);
    }
}
